package jsyf.oa.dao.system;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.system.Role2RightEntityView;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by Lenovo on 2017/12/11.
 */
@Repository
public class Role2RightDao extends BaseDao {
    public Role2RightDao() {
        super.iBaseEntity = new Role2RightEntityView();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, Role2RightEntityView.class);
    }
}
